//
//  InfoModel.m
//  项目
//
//  Created by 张诗雨 on 15/1/4.
//  Copyright (c) 2015年 张诗雨. All rights reserved.
//

#import "InfoModel.h"

@implementation InfoModel

- (void)dealloc
{
    [super dealloc];
    [_contentid release];
    [_addtime_f release];
    [_userinfo release];
    [_title release];
    [_content release];
    [_counterList release];
    [_sharepic release];
    [_shareurl release];
    [_html release];
    [_imgList release];
}
- (instancetype)initWithContentid:(NSString *)contentid type:(NSInteger)type addtime_f:(NSString *)addtime_f userinfo:(NSDictionary *)userinfo title:(NSString *)title content:(NSString *)content counterList:(NSDictionary *)counterList sharepic:(NSString *)sharepic shareurl:(NSString *)shareurl html:(NSString *)html imgList:(NSArray *)imgList
{
    self = [super init];
    if (self) {
        self.counterList = [NSDictionary dictionary];
        self.userinfo = [NSDictionary dictionary];
        self.imgList = [NSArray array];
        self.contentid = contentid;
        self.type = type;
        self.addtime_f = addtime_f;
        self.userinfo = userinfo;
        self.title = title;
        self.counterList = counterList;
        self.content = content;
        self.sharepic = sharepic;
        self.shareurl = shareurl;
        self.html = html;
        self.imgList = imgList;
        
    }
    return self;
}
+ (instancetype)infoModelWithContentid:(NSString *)contentid type:(NSInteger)type addtime_f:(NSString *)addtime_f userinfo:(NSDictionary *)userinfo title:(NSString *)title content:(NSString *)content counterList:(NSDictionary *)counterList sharepic:(NSString *)sharepic shareurl:(NSString *)shareurl html:(NSString *)html imgList:(NSArray *)imgList
{
    InfoModel *model = [[InfoModel alloc] initWithContentid:contentid type:type addtime_f:addtime_f userinfo:userinfo title:title content:content counterList:counterList sharepic:sharepic shareurl:shareurl html:html imgList:imgList];
    return model;
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}
- (id)valueForUndefinedKey:(NSString *)key
{
    return @"";
}
@end
